/**
 * pic查看图片控制器
 */
export default ['$scope','$rootScope','$location','$ui',function($scope,$rootScope,$location,$ui) {
    $scope.select1 = ''
    $scope.select2 = ''
    $scope.select = [{id:1,name:'车贷'},{id:2,name:'房贷'},{id:3,name:'信贷'}]
	$scope.modal_1= function(type,title,content){
        $ui.modal({
            title:title,
            size:type,
            content:"这是内容",
            ok:function (uimodal) {
            //返回了modal实例
            uimodal.close() //关闭
        }});
    }
    $scope.modal_2= function(){
        $ui.modal({content:"<demo></demo>"});
    }
    $scope.toast = function(type,text){
    	$ui.toast({text:text,type:type});
    }
   $(document).ready(function() { 
        $('#img').smartZoom()
   })
}]
